﻿@using Project.Engine.Utilities;
@{
    ViewBag.Title = "Chi Tiet Don Hang";
    Layout = "~/Views/Backend/Home/_Master.cshtml";
    Project.Module.View.ChiTietDonHangView orderDetailView = this.Model.DocumentObject as Project.Module.View.ChiTietDonHangView;
}
<div id="noidung">
    <div id="content-table-inner">
    	<h1>Chi tiết đơn hàng</h1>
                        <table height="20px"></table>
        <table border="0">
        @{
            if (orderDetailView.detailOrder != null)
            {

        	<tr>
            	<td>Mã đơn hàng: @orderDetailView.detailOrder.CartID</td>
            	<td><em></em></td>
            </tr>
            <tr height="10px"></tr>
            <tr>
            	<td>Tên khách hàng&nbsp;&nbsp;</td>
            	<td><em>@orderDetailView.detailOrder.customerName</em></td>
            </tr>
            <tr height="10px"></tr>
            <tr>
            	<td>Địa chỉ</td>
            	<td><em>@orderDetailView.detailOrder.addressCustomer</em></td>
            </tr>
            <tr height="10px"></tr>
     
            }
             
            }
              </table>
 @*          san pham list order  *@
         
        <table height="20px"></table>
        @{
            if (orderDetailView.listGiohang != null && orderDetailView.listGiohang.Count > 0)
            {
                <form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
                    <th class="table-header-repeat line-left minwidth-1"><a href="">Ma san pham</a>	</th>
					<th class="table-header-repeat line-left"><a href="">Sản phẩm</a></th>
   					<th class="table-header-repeat line-left"><a href="">Giá tiền</a></th>
   					<th class="table-header-repeat line-left"><a href="">Số lượng</a></th>
   					<th class="table-header-repeat line-left"><a href="">Thành tiền</a></th>
				</tr>
                @foreach(var item in orderDetailView.listGiohang) {
				<tr>
                    <td><a href="">@item.idProduct</a></td>
                    <td>@item.nameProduct</td>
                    <td>@item.priceProduct</td>
                    <td>@item.quantityProduct</td>
                    <td>@item.money VNĐ</td> 
				</tr>
                    }
				</table>
                
				<table>
					<tr>
					<td width="530px"></td>
					<td widht="50px"><strong>Tổng số tiền:</strong></td> 
					<td><em>@orderDetailView.total VNĐ</em></td>
					</tr>
				</table>
				<!--  end product-table................................... --> 
				</form>
				<input type="button" value="" class="delete-form" />
				<div></div>
 

            }           
            
        }
        	<td id="tbl-border-right"></td>
</tr>

</table>
       


<div class="clear">&nbsp;</div>

</div>

</div>
<!--end #noidung-->
